<template>
  <div>
      <!-- <button @click="$store.commit('increment')">加1</button><span>{{computedcount}}</span> -->
      <button @click="$store.commit('increment')">加1</button><span>{{count}}</span>
  </div>
</template>

<script>
import { mapState ,mapMutations} from 'vuex';
export default {
computed:{

...mapState(
  ['count']
)

  // computedcount(){
  //   return this. $store.state.count
  // }
}


}
</script>

<style>

</style>